Range LCP
نویسندگان
چکیده
In this paper, we define the Range LCP problem as follows. Preprocess a string S, of length n, to enable efficient solutions of the following query: Given [i, j], 0 < i ≤ j ≤ n, compute max`,k∈{i,...,j} LCP (S`, Sk), where LCP (S`, Sk) is the length of the longest common prefix of the suffixes of S starting at locations ` and k. This is a natural generalization of the classical LCP problem. Surprisingly, while it is known how to preprocess a string in linear time to enable LCP computation of two suffixes in constant time, this seems quite difficult in the Range LCP problem. It is trivial to answer such queries in time O(|j− i|) after a linear-time preprocessing and easy to show an O(1) query algorithm after an O(|S|) time preprocessing. We provide algorithms that solve the problem with the following complexities: 1. Preprocessing Time: O(|S|), Space: O(|S|), Query Time: O(|j−i| log log n). 2. Preprocessing Time: no preprocessing, Space: O(|j − i| log |j − i|), Query Time: O(|j − i| log |j − i|). However, the query just gives the pairs with the longest LCP, not the LCP itself. ? Partly supported by NSF grant CCR-09-04581, ISF grant 347/09, and BSF grant 2008217. ?? Partly supported by BSF grant 2008217. ? ? ? Partly supported by the National Science Foundation Award 0904246, Israel Science Foundation grant 347/09, Yahoo, Grant No. 2008217 from the United States-Israel Binational Science Foundation (BSF) and DFG. † Partly supported by the Israel Science Foundation grant 347/09 ‡ Partly supported by BSF grant 2006334, ISF grant 1484/08, and Google award. 3. Preprocessing Time: O(|S| log |S|), Space: O(|S| log |S|) for arbitrary small constant ε, Query Time: O(log log |S|)
منابع مشابه
Effectiveness of locking versus dynamic compression plates for diaphyseal forearm fractures.
This study compares the results of the locking compression plate (LCP) and the dynamic compression plate (DCP) in the treatment of diaphyseal forearm fractures in adults and defines the indications for the use of the LCP. Forty-two patients with diaphyseal forearm fractures were retrospectively analyzed. Of those, 22 had been treated with the LCP (LCP group) and 20 had been treated with the DCP...
متن کاملAnalysis of Upper Limb Movement Range and Global Grip Strength After Surgical Treatment of AO Type C Distal Radius Fractures Using LCP Plates and K-wires.
BACKGROUND This paper presents the outcomes of treatment of AO Type C distal radius fractures using LCP plates and K-wires. The analysis focused on comparison of movement range and global grip strength between the operated limb and the healthy one. MATERIAL AND METHOD The study involved 60 patients treated in the Regional Specialist Hospital in Zgierz in the period 2008-2013. LCP plates were ...
متن کاملLCP 140° Pediatric Hip Plate for fixation of proximal femoral valgisation osteotomy
PURPOSE Femoral osteotomy is one of the most widely performed reconstructive operations in pediatric orthopedic surgery. Many implants for fixation have been used, but so far there is no literature about the application and outcome of the LCP 140° Pediatric Hip Plate for proximal femoral valgisation in children. METHODS Data of patients with a valgisation of the proximal femur using the LCP 1...
متن کاملمقایسه نتایج درمان جراحی شکستگیهای دیستال فمور به دو روش رتروگراداینترامدولارنیل و لاکینگ کوندیلار پلیت
Background and Aim: Femoral fractures occur in 37 per 100,000 people per year. Distal femoral fractures are one of the challenging therapeutic facts, because of its high complications. So, many techniques have been introduced for its treatment. Up till know, there is no comparative study on Retrograde Intramedullary Nailing (RIN) and Locking Condylar Plate (LCP) in Iran and the results of t...
متن کاملLiverpool Care Pathway for patients with cancer in hospital: a cluster randomised trial.
BACKGROUND The quality of care provided to patients with cancer who are dying in hospital and their families is suboptimum. The UK Liverpool Care Pathway (LCP) for patients who are dying was developed with the aim of transferring the best practice of hospices to hospitals. We therefore assessed the effectiveness of LCP in the Italian context (LCP-I) in improving the quality of end-of-life care ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- J. Comput. Syst. Sci.
دوره 80 شماره
صفحات -
تاریخ انتشار 2011